import { formatPrice } from '@const/filter'

export const recordFormDetail = [
  [
    { key: 'ebsOrderCode', label: '配送商订单号' }, // 1
    { key: 'hospitalOrderCode', label: '医院订单号' }, // 1
    { key: 'orderStatus', label: '订单状态' }], // 1
  [{ key: 'createdAt', label: '创建时间' }],
  [{ key: 'receiverAddress', label: '收货地址' },
    { key: 'concatMan', label: '联系人' },
    { key: 'concatPhone', label: '联系电话' }
  ]
]

// 部分收货 - 详情 - 表格
export const partDetailsTableData = [
  { prop: 'orderNumber', label: '序号', width: 50 },
  // { prop: 'orderItemCode', label: '信息来源', width: 185 },
  { prop: 'orderItemCode', label: '订单号', width: 185 },
  { prop: 'orderItemCode', label: '订单明细编号', width: 185 },
  { prop: 'itemCode', label: '产品编码', width: 150, 'show-overflow-tooltip': true }, // 1
  { prop: 'itemName', label: '产品名称', width: 150, 'show-overflow-tooltip': true }, // 1
  { prop: 'itemStandard', label: '规格', width: 150, 'show-overflow-tooltip': true },
  { prop: 'itemModel', label: '型号', width: 150, 'show-overflow-tooltip': true },
  { prop: 'itemNums', label: '采购数量', width: 150, 'show-overflow-tooltip': true },
  { prop: 'itemUnit', label: '采购单位', width: 150, 'show-overflow-tooltip': true },
  { prop: 'transforRelationFormat', label: '转换关系', width: 150, 'show-overflow-tooltip': true },
  { prop: 'transforNum', label: '转换数量', width: 150, 'show-overflow-tooltip': true },

  { prop: 'registCode', label: '注册证号/备案证号', width: 150, 'show-overflow-tooltip': true },
  { prop: 'factoryName', label: '生产厂家', width: 150, 'show-overflow-tooltip': true },
  // { prop: 'orderType', label: '产品大类', width: 150, 'show-overflow-tooltip': true },
  { prop: 'itemPrice', label: '单价 （元）', width: 150, formatter: row => formatPrice(row.itemPrice, 2) },
  { prop: 'pcompanyName', label: '配送商', width: 150, 'show-overflow-tooltip': true },

  { prop: 'deliveredNums', label: '已发货数量', width: 150, 'show-overflow-tooltip': true },
  { prop: 'unDeliveredNums', label: '待发货数量', width: 150, 'show-overflow-tooltip': true },
  { prop: 'batchNo', label: '发货批次号', width: 200 },
  { prop: 'deliverNums', label: '本次发货数量', width: 150 },
  { prop: 'productionDate', label: '生产日期', width: 200 },
  { prop: 'validityDate', label: '失效日期', width: 200 },
  { prop: 'serialNumber', label: '序列号', width: 200 },
  { prop: 'udi', label: 'UDI', width: 200 },
  { prop: 'remark', label: '备注', width: 200 }
  // { prop: 'registCode', label: '注册证号/备案证号', width: 170, 'show-overflow-tooltip': true },
  // { prop: 'hospitalItemCode', label: '医院明细行号', width: 150 }, // 1
  // { prop: 'ebsOrderItemCode', label: '国科明细行号', width: 150 }
]
